package com.diko.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.diko.common.utils.PageUtils;
import com.diko.product.entity.AttrEntity;
import com.diko.product.vo.AttrGroupRelationVo;
import com.diko.product.vo.AttrRespVo;
import com.diko.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author Emma Li
 * @email 1006298386@qq.com
 * @date 2021-04-18 15:02:18
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttrVo(AttrVo attrVo);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

    void updateAttrDetail(AttrVo attr);

    AttrRespVo getAttrDetail(Long attrId);

    List<AttrEntity> getAttrRelation(Long attrgroupId);

    void deleteAttrRelation(AttrGroupRelationVo[] attrGroupRelationVos);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);
}

